﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.ProcedureRemarkModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit</h2>
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Fields</legend>
        <div class="editor-label">
            ID :
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Id,new { @readonly = "readonly" })%>
            <%= Html.ValidationMessageFor(model => model.Id) %>
        </div>
        <div class="editor-label">
            Title Resulte :
        </div>
        <div class="editor-field">
            <%=Html.DropDownListFor(model => model.TitleProcedureId, Model.TitleSelect)%>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.ProcedureRemarkTh) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.ProcedureRemarkTh) %>
            <%= Html.ValidationMessageFor(model => model.ProcedureRemarkTh) %>
        </div>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.ProcedureRemarkEng) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.ProcedureRemarkEng) %>
            <%= Html.ValidationMessageFor(model => model.ProcedureRemarkEng) %>
        </div>
        <%--
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Status) %>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateBy) %>
                <%= Html.ValidationMessageFor(model => model.CreateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateOn, String.Format("{0:g}", Model.CreateOn)) %>
                <%= Html.ValidationMessageFor(model => model.CreateOn) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateBy) %>
                <%= Html.ValidationMessageFor(model => model.UpdateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateOn, String.Format("{0:g}", Model.UpdateOn)) %>
                <%= Html.ValidationMessageFor(model => model.UpdateOn) %>
            </div>--%>
        <p>
            <input class="buttonSummit" type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
